{% extends "base.html" %}
{% block main %}
<table width="90%" align="center" cellpadding="5" cellspacing="1" bgcolor="#FFFFFF">
	<tr class="board_header" bgcolor="#5a7594" align="center">
	    <td width="*" height="20">标题</td>
	    <td width="15%">作者</td>
	    <td width="8%">回复</td>
	    <td width="8%">人气</td>
	    <td width="15%">最后回复</td>
	</tr>
	{% for t in paginator.object_list %}
	<tr bgcolor="#eeeeee" align="left" valign="top" class="board_item">
        <td valign="middle"><a href="{% url bb.views.topic t.id %}">{{ t.title }}</a></td>
        <td align="center" valign="middle"><a href="#">{{ t.author }}</a></td>
	    <td align="center" valign="middle" bgcolor="#eeeeee">{{ t.replies }}</td>
	    <td align="center" valign="middle" bgcolor="#eeeeee">{{ t.hits }}</td>
	    <td valign="top"><p>{{ t.last_talk_datetime|date:"Y-m-d H:i"}}</p><p>By:<a href="#">{{ t.last_talk_author }}</a></p></td>
	</tr>
	{% endfor %}
</table>
<table width="90%" align="center" cellpadding="5" cellspacing="1" bgcolor="#FFFFFF">
    <tr>
        <td>总数：{{ paginator.number }}</td>
    </tr>
</table>
{% endblock %}